package com.easylinkin.linkappapi.childinspection.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.childinspection.entity.InspectionRecordEntity;
import com.easylinkin.linkappapi.childinspection.vo.BaseVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author linWenLe
 * @Date: 2024/4/3
 * @Description:
 */
public interface InspectionRecordMapper extends BaseMapper<InspectionRecordEntity> {

    IPage<InspectionRecordEntity> selectPointRecordInfoList(Page page,@Param("model") BaseVo model);

    IPage<InspectionRecordEntity> selectTodayRecordInfo(Page page,@Param("model") BaseVo model);

    List<Map<String, Object>> selectListById(List<String> stringList);

    InspectionRecordEntity selectOneById(String pointId);

    void deleteRecordById(String pointId);

    List<InspectionRecordEntity> getTaskCount(String taskId);

    void updateTaskAndPointStatus(@Param("pointId") String pointId, @Param("status") int status);
}
